<tpl> include file='sys_config.head.html' </tpl>
<div id="doc3">
	<div id="yui-main">
		<div class="yui-g">
 			<div id="divinbox">
				<div class="gtlbar">
					<div class="gtlbar-left">部门管理 &gt;&gt; 添加部门</div>
				</div>
				<div class="ctge">
					<div class="ctge-1">
						<form action="system_power.manage.php?action=save_department" method="post" id="form1" name="form1" >
						<div class="ctge-1-1">
							<table cellSpacing="0" cellPadding="0" class="fct" border="0">
								<tr>
									<th>部门名称 :</th>
									<td>
									<input class="fct-input" name="sys_department_name" id="sys_department_name" type="text" maxlength="80"/></td>
							</tr>
							<tr>
								<th>所属部门 :</th>
								<td>
									<span class="dptn">部门无所属关系时,不用选择</span>
									<select name="parent_id">
										<option value="">选择所属部门</option>
									<tpl> if $department_list[0].id neq ''</tpl>
									<tpl> section name=loop loop=$department_list </tpl>
										<option value="<tpl> $department_list[loop].id </tpl>"> <tpl> $department_list[loop].name </tpl></option>
										<tpl> /section </tpl>
									<tpl> /if </tpl>
									</select>
								</td>
							</tr>
							</table>
						</div>
						<div class="bth-ct">
							<div class="bth-pl">
								<input class="bthl" value="提交" type="submit" />
								<input type="button" class="bthl" value="返回" onclick='history.back();'/>
							</div>
						</div>
					</form>
					</div>
				</div>	
			</div>
		</div>
	</div>
</div>
<tpl> include file='sys_config.js.html' </tpl>
<script>
$(document).ready(function(){
	//area select

	$("#form1").validate({
		errorClass: "wrong",
		rules: {
			sys_department_name: {required:true}
		},
		messages: {
			sys_department_name: {required: "请输入部门名称"}
		}
	});

});
</script>
</body>
</html>
